<?php use_stylesheet('/sfDoctrinePlugin/css/global.css', 'first') ?>
<?php use_stylesheet('/sfDoctrinePlugin/css/default.css', 'first') ?>

<div id="sf_admin_container">
    <div class="sf_admin_form">
        <form id="frmChangePassword" action="<?php echo url_for('@change_password') ?>" method="post">
            <table>
                <tbody>
                    <?php if ($sf_user->hasFlash('notice')): ?>
                    <div class="notice">
                        <?php echo $sf_user->getFlash('notice') ?>
                    </div>
                    <?php endif; ?>
                    <?php echo $form->renderGlobalErrors(); ?>
                    <tr>
                        <th><?php echo $form['old_password']->renderLabel() ?></th>
                        <td>
                            <?php echo $form['old_password']->renderError() ?>
                            <?php echo $form['old_password'] ?>
                        </td>
                    </tr>
                    <tr>
                        <th><?php echo $form['new_password']->renderLabel() ?></th>
                        <td>
                            <?php echo $form['new_password']->renderError() ?>
                            <?php echo $form['new_password'] ?>
                        </td>
                    </tr>
                    <tr>
                        <th><?php echo $form['re_password']->renderLabel() ?></th>
                        <td>
                            <?php echo $form['re_password']->renderError() ?>
                            <?php echo $form['re_password'] ?>
                        </td>
                    </tr>
                </tbody>
            </table>
            <?php echo $form['_csrf_token']; ?>
            <?php if (!isset($hideActions)):?>
            <input type="submit" value="<?php echo __('Submit') ?>" />
            <?php endif;?>
        </form>
    </div>
</div>


